/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.stock.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 库存Entity
 * @author 库存
 * @version 2019-12-21
 */
public class Stock extends DataEntity<Stock> {
	
	private static final long serialVersionUID = 1L;
	private int number;		// 数量
	private String name;		// 货物名称
	private Woods w;		// 货物id
	private WarehouseLoc l;		// 库位id
	private String locnumber;		// 库位数量
	private String lnumbernumber;		// 空数量
	private Warehouse wh;		// 仓库id
	private Container whd;		// 货位id
	
	public Stock() {
		super();
	}

	public Stock(String id){
		super(id);
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}
	
	@Length(min=0, max=255, message="货物名称长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Woods getW() {
		return w;
	}

	public void setW(Woods w) {
		this.w = w;
	}

	
	@Length(min=0, max=11, message="库位数量长度必须介于 0 和 11 之间")
	public String getLocnumber() {
		return locnumber;
	}

	public void setLocnumber(String locnumber) {
		this.locnumber = locnumber;
	}
	
	@Length(min=0, max=1, message="空数量长度必须介于 0 和 1 之间")
	public String getLnumbernumber() {
		return lnumbernumber;
	}

	public void setLnumbernumber(String lnumbernumber) {
		this.lnumbernumber = lnumbernumber;
	}

	public WarehouseLoc getL() {
		return l;
	}

	public void setL(WarehouseLoc l) {
		this.l = l;
	}

	public Warehouse getWh() {
		return wh;
	}

	public void setWh(Warehouse wh) {
		this.wh = wh;
	}

	public Container getWhd() {
		return whd;
	}

	public void setWhd(Container whd) {
		this.whd = whd;
	}
}